export default function* clearname({ payload }: any, { put, takeLatest }: any) {
    yield takeLatest(
      [
        // 'users/saveTreatmentItem',
        'users/fetchUserName',  //监听users/fetchUserName方法是否执行，执行就了就执行下面的函数action
      ],
      function* action({ payload }: any) {
        console.log(1);
        yield put({
          type: 'clear',
          payload,
        });
      }
    );
  }